<?php

class config_db {

    private static $conf = array(

        'admin' => array(
            'host'  => 'localhost',
            'user'  => 'db',
            'passwd'=> 'q1w2e3r4',
            'db'    => 'xiaoyouxi',
        ),

        'passport' => array(
            'host'  => 'localhost',
            'user'  => 'db',
            'passwd'=> 'q1w2e3r4',
            'db'    => 'passport',
        ),

        'comment' => array(
            'host'  => 'localhost',
            'user'  => 'db',
            'passwd'=> 'q1w2e3r4',
            'db'    => 'comment',
        ),

        'crawler' => array(
            'host'  => 'localhost',
            'user'  => 'db',
            'passwd'=> 'q1w2e3r4',
            'db'    => 'flash_crawler',
        ),
    );

    public static function get($what){
        return self::$conf[$what];
    }

}
